package cn.lingyangwl.agile.model.constants;

/**
 * @author shenguangyang
 */
public interface SecurityCons {
    /**
     * 角色前缀
     */
    String ROLE = "ROLE_";

    String NOT_EXIST = "e843f86e97e14b01add7756e2e6327f9";

    /**
     * 默认登录URL
     */
    String OAUTH_TOKEN_URL = "/oauth2/token";

    /**
     * grant_type
     */
    String REFRESH_TOKEN = "refresh_token";

    /**
     * 客户端ID
     */
    String CLIENT_ID = "clientId";

    /**
     * 用户ID字段
     */
    String USER_ID = "userId";

    /**
     * 用户名字段
     */
    String USER_NAME = "userName";
    /**
     * 授权信息字段
     */
    String ACCESS_TOKEN_KEY = "access_token";

    /**
     * 令牌前缀
     */
    String ACCESS_TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌秘钥
     */
    String SECRET = "232CCA28027941B48980FE9DC8D81714";

    /**
     * {noop} 加密的特征码
     */
    String NOOP = "{noop}";

    /**
     * 授权码模式confirm
     */
    String CUSTOM_CONSENT_PAGE_URI = "/token/confirm_access";

    /**
     * 协议字段
     */
    String DETAILS_LICENSE = "license";

    /**
     * 用户信息
     */
    String DETAILS_USER = "userInfo";

    /**
     * 项目的license
     */
    String PROJECT_LICENSE = "http1://127.0.0.1.com";

    /**
     * 客户端模式
     */
    String CLIENT_CREDENTIALS = "client_credentials";

    /**
     * 请求来源
     */
    String FROM_SOURCE = "from-source";
    /**
     * 内部请求
     */
    String FROM_IN = "inner";

    String HEADER_FROM_IN = FROM_SOURCE + "=" + FROM_IN;

    interface SmsParam {
        String PHONE = "phone";
    }

    interface WxParam {
        String CODE = "code";
        String ENCRYPTED_DATA = "encryptedData";
        String IV = "iv";

    }
}
